package bamboo.io;

class FileOrString(val file: java.io.File)

object FileOrString { 
  implicit def fromString(fname: String) = new FileOrString(new java.io.File(fname))
  implicit def fromFile(file: java.io.File) = new FileOrString(file)
}

object Path {
  
  def combine(parent: FileOrString, child: String) = {
    new java.io.File(parent.file, child)
  }
 
  def tempPath = new java.io.File(System.getProperty("java.io.tmpdir"))

}
